#ifndef __EEPROM_H
#define __EEPROM_H

#include "main.h"

//Start address for STC89C52xx EEPROM 
#define IAP_ADDRESS 0x2000

void IapIdle(); 
BYTE IapReadByte(WORD addr); 
void IapProgramByte(WORD addr, BYTE dat); 
void IapEraseSector(WORD addr);

#endif
